<template>

     <span class="header-edit">
           <!--  12  设置删除 deleteShow  -->
          <span v-show="deleteShow" @click="SET_DELETE_SHOW(false)">编辑</span> 
          <span v-show="!deleteShow"  @click="SET_DELETE_SHOW(true)">完成</span>
        </span>
</template>
<script>
import {  mapMutations, mapState } from 'vuex'
export default {
  name:"Edit",
  computed:{
    ...mapState(['deleteShow'])
  },
  methods:{
    ...mapMutations(['SET_DELETE_SHOW'])
  }
}
</script>
<style lang="scss" scoped>
    
.header-edit {
    float: right;
    padding: 0 .1rem;
    cursor: pointer;
}
</style>